package com.yxlgateway.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yxlcommon.common.mapper.IndexImgMapper;
import com.yxlcommon.common.pojo.IndexImg;
import com.yxlcommon.common.pojo.RespBean;
import com.yxlgateway.service.IndexImgService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author: yxl
 * @since: 2021-11-18
 **/
@Service
public class IndexImgServiceImpl extends ServiceImpl<IndexImgMapper, IndexImg> implements IndexImgService {

    @Autowired
    private IndexImgMapper indexImgMapper;

    @Override
    public RespBean<List<String>> listIndexImgs() {
        return RespBean.operationSuccess("success",200,indexImgMapper.selectImgUrl());
    }
}
